<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Cognitum.Presentacion._Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>:: cognιтυм ::</title>
		
	    <link rel="stylesheet" type="text/css" href="css/style.css" />
		<link rel="stylesheet" type="text/css" href="css/icons.css" />
		<link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css" href="css/calendar_core.css" />

		<script type="text/javascript" src="lib/log4javascript/log4javascript.js"></script>
		<script type="text/javascript" src="lib/util/ObjectAnalyzer.js"></script>

		<script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
	    <script type="text/javascript" src="lib/ext/ext-all.js"></script>
	    <script type="text/javascript" src="lib/ext/locale/ext-lang-es.js"></script>
	    
		<!-- <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAApCR0tNm54fWgwGSl9UkxGhSZFAgyflIpunvRrz1sqAv5yQ-asxSTAtuZXJrQImNUi-23Doc5DBK_PQ"></script>
	    -->
		<script type="text/javascript" src="lib/build/cognitumlib-debug.js"></script>

		<script type="text/javascript" >

			Ext.BLANK_IMAGE_URL = 'lib/ext/resources/images/default/s.gif';

			Ext.onReady(function (){
				LOG.debug('[Ext.onReady] <-');
				
				var aplicacion = new Application({
					title: '::cognιтυм::',
					footer: 'cognιтυм &copy; y &reg; GAB IT Services 2010',
					homeXType: 'homepage',
					helpXType: 'help',
					aboutXType: 'about',
					loadMetadata: true,
					loadUserdata: true,
					metadataService: 'Karma.Framework.Core.Metadata.Mapping.IApplicationService',
					metadataMethod: 'ObtenerMetadatos',
					logInService: 'Cognitum.Dominio.Aplicacion.Seguridad.IUsuarioService',
					userDataXTemplate: new Ext.XTemplate(
						'<tpl for=".">Usuario: {Nombre}, Ubicaci&oacute;n: ', 
						'<tpl for="Ubicacion">{Nombre}</tpl></tpl>'),
					modules: [
						Cognitum.Aplicacion.Module,
						Cognitum.Commons,
						Cognitum.Seguridad,
						Cognitum.Organizacion,
						Cognitum.CarteraClientes,
						Cognitum.Poliza,
						Cognitum.Cobranzas,
						Cognitum.Mensajerias,
						Cognitum.MesaControl,
						Cognitum.Negociaciones.Module,
						Karma.System,
						Karma.Reports						
					],
					reports: [],
					cachefiles: false,
					timeout: <%=Context.Session.Timeout %>
				});
				aplicacion.run({ 
					username: '<%=Username.ToLower() %>', 
					domain: '<%=Domain %>',
					debug: true 
				});
				
				LOG.debug('[Ext.onReady] ->');
			});
			
		</script>
    </head>
    <body>
    </body>
</html>